# RUN: %as %s -o %t.o
# RUN: %objdump -d %t.o | tail -n +6 > %t.txt
# RUN: diff %t.txt %S/../expected/add_bypass.txt
.global start
_begin:
start:
.text
#.ent main

boot:
.=1024

movigl GR0 0x0000||
movigl GR1 0x0010||
movigl GR7 0x0020||

add GR2 GR0 GR1||
add GR3 GR0 GR1||

jmp next1||  #JMP
add GR4 GR2 GR3||
nop||
nop||
nop||

next1:
nop||
nop||
nop||

jmp next2||
add GR2 GR0 GR4||
add GR3 GR0 GR4||
nop||

next2:
add GR4 GR2 GR3||
nop||
nop||
nop||



jmp next3||
add GR2 GR0 GR4||
add GR3 GR0 GR4||
nop||

next3:
nop||
add GR4 GR2 GR3||
nop||
nop||



jmp next4||
add GR2 GR0 GR4||
add GR3 GR0 GR4||
nop||

next4:
nop||
nop||
add GR4 GR2 GR3||
nop||
nop||

movigl GR4 0x0001||

jmp next5||
add GR2 GR0 GR4||
add GR3 GR0 GR4||
nop||

next5:
||store32 GR2 GR1 0x0001
||store32 GR3 GR7 0x0001
nop||
nop||
|load32 GR8 GR1 0x0001|
|load32 GR9 GR7 0x0001|

movigl GR4 0x0002||

jmp next6||
add GR2 GR0 GR4||
add GR3 GR0 GR4||
nop||

next6:
||store32 GR3 GR7 0x0001
||store32 GR2 GR1 0x0001
nop||
nop||
|load32 GR8 GR1 0x0001|
|load32 GR9 GR7 0x0001|

movigl GR4 0x0003||

jmp next7||
add GR2 GR0 GR4||
||store32 GR2 GR1 0x0001
nop||

next7:
|load32 GR8 GR1 0x0001|
nop||
nop||

movigl GR4 0x0004||

jmp next8||
add GR2 GR0 GR4||
||store32 GR2 GR1 0x0001
nop||

next8:
nop||
|load32 GR8 GR1 0x0001|
nop||
nop||

movigl GR4 0x0005||

jmp next9||
add GR3 GR0 GR4||
||store32 GR3 GR7 0x0001
nop||

next9:
|load32 GR9 GR7 0x0001|
nop||
nop||

movigl GR4 0x0006||

jmp next0||
add GR3 GR0 GR4||
||store32 GR3 GR7 0x0001
nop||

next0:
nop||
|load32 GR9 GR7 0x0001|
nop||
nop||


